package file;

import java.io.File;
import java.util.Scanner;

public class Test04 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入要删除的目录名:");
        String in = scan.next();
        File dir = new File("./"+in);
        if (dir.exists()){
            dir.delete();
            System.out.println("目录删除成功");
        }else{
            System.out.println("目录不存在");
        }
    }
}
